package com.drawu.drawuspring.domain.VO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.drawu.drawuspring.domain.po.Images;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class PostVO {
    // 帖子信息
    @ApiModelProperty(value = "帖子id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发布者openid")
    private String openid;

    @ApiModelProperty(value = "帖子分区")
    private String area;

    @ApiModelProperty(value = "帖子标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "点赞")
    private Integer likes;

    @ApiModelProperty(value = " 是否点赞")
    private boolean isLiked;

    @ApiModelProperty(value = "收藏")
    private Integer collect;

    @ApiModelProperty(value = "是否收藏")
    private boolean isCollected;

    @ApiModelProperty(value = "关注")
    private Integer focus;

    @ApiModelProperty(value = "评论数")
    private Integer comments;

    @ApiModelProperty(value = "用户id")
    private Integer userId;
@ApiModelProperty(value = "图片列表")
    private List<Images> images;
@ApiModelProperty(value = "用户信息")
    private UserVO userVO;
}
